package jp.dev7.enchant.tot.service;

import java.util.Date;

import org.slim3.datastore.Datastore;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

import jp.dev7.enchant.tot.model.IssueId;

public class IssueIdService {

    public String issue() {
        IssueId id = new IssueId();
        id.setCreatedAt(new Date());
        Key key = Datastore.put(id);
        return KeyFactory.keyToString(key);
    }
}
